import tushare as ts
import json
import sys

if __name__ == '__main__':
    sys.path.append('..')

import storage.db as db


json_str = ts.get_stock_basics().to_json(orient='records')
data = json.loads(json_str)

db.write('stock', data)
